Skip to main content

All Questions

1vote
1answer
627views

Query selector in nested AngularJS Directives

I'm using two directives in this HTML code: <div animations> <h2>Title</h2> <span class="animateBtn">Animate!</span> <info-section></info-section> &...
panagulis72's user avatar
1vote
1answer
304views

Writing a jQuery function as a AngularJS directive

I need to write a jQuery function as a AngularJS directive but I don't know how to use specific jqLite functions (closest, find..) and $(this) inside my directive. I've tried it like this: jQuery ...
Codehan25's user avatar
2votes
2answers
4kviews

how to call a function (or directive) only when tab is selected in angularjs?

I'm new in angularjs, I have page with 2 tabs.I create tabs using directives, I use $http to get json from my server.my problem is I don't want to request my server until user decide to see my other ...
Shirin Abdolahi's user avatar
0votes
1answer
194views

Not able to change attribute in $templateCache using an AngularJS Directive

This is my Directive : module.directive('iconSwitcher', function() { return { restrict : 'A', link : function(scope, elem, attrs) { var currentState = true; elem.on('...
Ayyoub's user avatar
  • 1,395

close